package com.yu.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yu.app.pojo.Goods;
import org.apache.ibatis.annotations.Update;

public interface GoodsMapper extends BaseMapper<Goods> {

    // 更新月销量
    @Update("update goods set sell_count=sell_count + #{param2} where id = #{param1};")
    int increaseSellCountById(Integer id, Integer number);
}
